package com.deram.ctin.serv.main.vo;

import com.google.common.collect.Lists;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;

/**
 * @author zhangcm
 * @version 1.0, 2017/9/28
 */
@ApiModel(description = "企业关系")
public class EnterRelationVo {

    @ApiModelProperty(value = "ID")
    private Long id;
    @ApiModelProperty(value = "编码")
    private String code;
    @ApiModelProperty(value = "名称")
    private String name;
    @ApiModelProperty(value = "类型(1: 公司, 2: 人)")
    private Integer type;
    @ApiModelProperty(value = "关系")
    private String relation;
    @ApiModelProperty(value = "层级")
    private Integer level;
    @ApiModelProperty(value = "关联对象列表")
    private List<EnterRelationVo> childList = Lists.newArrayList();

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getRelation() {
        return relation;
    }

    public void setRelation(String relation) {
        this.relation = relation;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public List<EnterRelationVo> getChildList() {
        return childList;
    }

    public void setChildList(List<EnterRelationVo> childList) {
        this.childList = childList;
    }
}
